# 对信息进行编码
import urllib.parse

import requests

def qinyunke(msg):

    # 定义青云客的路由
    url = 'http://api.qingyunke.com/api.php?key=free&appid=0&msg=%s' % urllib.parse.quote(msg)

    res = requests.get(url)

    return res.json()['content']

# print(qinyunke('别纠结于是与不是，菲菲早已看破红尘~'))
